package com.zsrt.java.day20161223.zzm.demo10;

import org.junit.Test;

public class JiuJiuTest {
	
	@Test
	public void aa(){
		for(int i=1;i<=9;i++){
			for(int j=1;j<=i;j++){
				System.out.print(i+"*"+j+"="+i*j+" ");
				if((j==2&&i==3)){
					System.out.print(" ");
				}
				if((j==2&&i==4)){
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}
	
	@Test
	public void bb(){
		int i=1;
		while(i<=9){
			int j=1;
			while(j<=i){	
				System.out.print(i+"*"+j+"="+i*j+"\t");
			    j++;
			}
			System.out.println();
			i++;
		}
	}
}
